package com.itheima.reggie.mapper;

import com.itheima.reggie.entity.OrderDetail;
import com.itheima.reggie.entity.Orders;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface OrderDetailMapper {


    Integer save(@Param("OrderDetailList") List<OrderDetail> OrderDetailList);


    @Select("select * from order_detail where order_id={number}")
   List<OrderDetail> findByOrderId(Orders orders);

}
//(#{id},#{name},#{orderId},#{dishId},#{setmealId},#{dishFlavor},#{number},#{amount},#{image})